home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / gem / l_0399 / 260 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.6 KB

  1. Subject: Re: SHORTCUT.INF
  2. Date: Thu, 2 Jun 1994 14:55:45 +0200 (MDT)
  3. In-Reply-To: <memo.270288@cix.compulink.co.uk> from "Ofir Gal" at Jun 2, 94 09:59:00 am
  4. From: Annius.Groenink@cwi.nl (Annius Groenink)
  5. X-Face: "E3Hm]k]&:,OEP<{D2ixJf>-9[qOGLebNa0&cQyFL-a~)kTM3&&I"gFw=fJ]K%1IduGjOE`
  6.  ZGu]&~G]QNGa7i/L!+#Xng<|+}HKYHj~5?fTInUEUh0$I1gBI7jrA!&_|e/pR1[cX:^xgJTPsrjA_9
  7.  m8Zli[|.-u{]+c1(6C7mL*m`/_J\>.{4!:g
  8. Mime-Version: 1.0
  9. Precedence: bulk
  10.  
  11.  
  12. > 2. More importantly, what if a user defined key conflicts with your app.
  13. > Say the user decides that Select All should be CTRL+L, but your app
  14. > already uses CTRL+L for something else.
  15.  
  16. There a two options.  Either we bind a key to an action,  or an action
  17. to a key.  As we cannot bind two actions to the same key,  clearly we
  18. need the first one.  So the SHORTCUT.INF file would have entries like:
  19.  
  20. (application-group)(key)    ->    (action)
  21.  
  22.  
  23. Now what an application does when it reads the file is:  first read
  24. SHORTCUT.INF.  If you find the key,  and the application-group matches
  25. you,  then perform the action on the RHS of the ->.  Otherwise,  scan
  26. your private bindings.
  27.  
  28. So if a user decides that CTRL L is select all,  then CTRL L for that
  29. other thing is no more valid.
  30.  
  31.  
  32. This does require that while reading SHORTCUT.INF,  the application will
  33. have to change the menu.  It should of course be possible to do this
  34. efficiently.
  35.  
  36. -- 
  37. Annius V. Groenink | E-mail: avg@cwi.nl      |  Private & ZFC:
  38. CWI, Kruislaan 413 | Room:   M233            |  P.O. Box 12079
  39. 1098 SJ Amsterdam  | Ext:    4077            |  NL 1100 AB Amsterdam 
  40. Netherland         | Phone:  +31 20 592 4077 |  Phone: +31 20 695 9901
  41.